<!-- 209000804 谭臣 -->
<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>原生数据请求</title>
		<script type="text/javascript">
			let name="T0M";
			if(window.XMLHttpRequest){
				xhr=new XMLHttpRequest();
				
			}else{
				xhr=new ActiveXObject("Microsoft.XMLHTTP");
				
			}
			xhr.onreadystatechange=callBack;
			let url="https://mock.apifox.cn/m1/2012934-0-default/getEmail";
			xhr.open("POST",url,true);
			xhr.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
			xhr.send("email=**");
			
			function callBack(){
				if(xhr.readyState==4&&xhr.status==200){
					let data=xhr.responseText;
					if(data=="True"){
						alert("该邮箱已被使用")
					}else{
						alert("该邮箱未被使用");
					}
				}
				
			}
			
		</script>
	</head>
	<body>
	
	</body>
<html>
